﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TE3.Utils
{
	public struct Int2
	{
		public int X;
		public int Y;
		public Int2(int x, int y)
		{
			X = x;
			Y = y;
		}
		public static Int2 Add(Int2 x, Int2 y)
		{
			return new Int2(x.X + y.X, x.Y + y.Y);
		}
		public new string ToString()
		{
			return "[" + X + ", " + Y + "]";
		}
		public static Int2 GetRandom(Random rand, int minX, int maxX, int minY, int maxY)
		{
			return new Int2(rand.Next(minX, maxX), rand.Next(minY, maxY));
		}
	}
}
